﻿// HSS.Interlink.UI.UploadFileDetail.cs
// ----------------------------------------------------------------------------
// Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.html)
// ----------------------------------------------------------------------------
// HighSpeed-Solutions, LLC
// Copyright (c) 2001-2012
// ----------------------------------------------------------------------------
// File:       UploadFileDetail.cs
// Author:     HSS\gbanta
// Created:    01/17/2012
// Modified:   01/17/2012
// ----------------------------------------------------------------------------
using System.Windows;
using System.Windows.Controls;

namespace HSS.Interlink.UI
{
	/// <summary>
	/// A default and generic dialog (<see cref="System.Windows.Controls.ChildWindow"/>), to display the details for a specific file
	/// using the default and generic <see cref="UploadFileDetail"/> user control.
	/// </summary>
	public partial class UploadFileDetailDialog : ChildWindow
	{
		/// <summary>
		/// Constructor.
		/// </summary>
		public UploadFileDetailDialog()
		{
			InitializeComponent();
		}

		/// <summary>
		/// Gets or sets the UploadFile to display the details for.
		/// </summary>
		public UploadFile File
		{
			get { return this.detail.DataContext as UploadFile; }
			set { this.detail.DataContext = value; }
		}

		private void OKButton_Click(object sender, RoutedEventArgs e)
		{
			this.DialogResult = true;
		}
	}
}

